|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.cebis.moccabox.domain.AbstractConceptualObject
de.cebis.moccapart.calendar.domain.composite.CalendarComponentContainer
public class CalendarComponentContainer
Überschrift:
Beschreibung: Class that is used as a container for CalendarEvent
objects. It provides several useful methods to work with
corresponding objects.
Copyright: Copyright (c) 2003
Organisation:
| Field Summary | |
|---|---|
static int |
GROUPBY_CALENDARID
|
static int |
GROUPBY_CATEGORY
|
static int |
GROUPBY_LOCATION
|
static int |
GROUPBY_NOTHING
|
static int |
GROUPBY_ORGANISERID
|
static int |
NAME
Identifiziert den Bezeichner, mit dem ein Kalender identifiziert werden soll. |
static int |
OWNER
Identifiziert den Bezeichner, mit dem ein Kalender identifiziert werden soll. |
static int |
PRIVATE
|
static java.lang.String |
PROP_FIRSTDAY
|
static java.lang.String |
PROP_LASTDAY
|
static java.lang.String |
PROP_VIEW
|
static int |
PUBLIC
|
static int |
VIEW_DAY
|
static int |
VIEW_GROUP
|
static int |
VIEW_LIST
|
static int |
VIEW_MONTH
|
static int |
VIEW_WEEK
|
static int |
VIEW_YEAR
|
| Fields inherited from interface de.cebis.moccabox.domain.IPersistentConcept |
|---|
PROP_CREATION_DATE, PROP_ID, PROP_LAST_EDIT_DATE, PROP_LAST_EDIT_USER |
| Constructor Summary | |
|---|---|
CalendarComponentContainer()
|
|
| Method Summary | |
|---|---|
void |
addCalendarEvent(de.cebis.moccapart.calendar.domain.CalendarEvent event)
Adds a CalendarEvent object to the
CalendarComponentContainer. |
void |
addCalendarEvents(de.cebis.moccapart.calendar.domain.CalendarEvent[] events)
Adds a CalendarEvent object array to the
CalendarComponentContainer. |
java.util.Vector<CalendarTimeUnit> |
calculateDays()
Returns the days this CalendarComponentContainer represents. |
boolean |
containsNoCalendarEvents()
Returns if there are no CalendarEvent objects in the
CalendarComponentContainer. |
boolean |
containsNoCalendarTasks()
Returns if there are no CalendarEvent objects in the
CalendarComponentContainer. |
de.cebis.moccapart.calendar.domain.Calendar |
getCalendar()
Returns the id of a Calendar if container only contains
component from this one object. |
CalendarComponentContainer |
getCalendarComponentContainer()
|
int |
getCalendarEventCount()
Returns number of CalendarEvent objects in the
CalendarComponentContainer. |
int |
getCalendarTaskCount()
Returns number of CalendarTask objects in the
CalendarComponentContainer. |
CalendarTimeUnit[] |
getCalendarTimeUnits()
Returns the days this CalendarComponentContainer represents. |
java.util.Date |
getCurrentDate()
Liefert das aktuelle Datum zurück. |
CalendarTimeUnit[] |
getDays()
|
java.util.Date |
getFirstDate()
Returns the first date of the represented CalendarComponent
objects. |
java.util.Vector<CalendarTimeUnit> |
getHours()
Returns the hours of one day this CalendarComponentContainer
represents. |
java.util.Date |
getLastDate()
Returns the last date of the represented CalendarComponent
objects. |
java.util.Date |
getNextFirstDate()
Liefert ausgehend vom aktuellen ersten Datum entsprechend der View das nächste erste Datum zurück. |
java.util.Date |
getPreviousFirstDate()
Liefert ausgehend vom aktuellen ersten Datum entsprechend der View das vorhergehende erste Datum zurück. |
int |
getView()
Returns the view to be taken for the current container. |
void |
init()
|
void |
instantiateFirstDate()
Sets the first date of the represented CalendarComponent
objects. |
void |
removeCalendarEvent(int position)
Removes a CalendarEvent from the
CalendarComponentContainer. |
void |
setCalendar(de.cebis.moccapart.calendar.domain.Calendar calendar)
Sets the id of a Calendar if container only contains
component from this one object. |
void |
setExactFirstDate(java.util.Date firstdate)
Sets the first date of the represented CalendarComponent
objects without changing start hour, minute, second. |
void |
setExactLastDate(java.util.Date lastdate)
Sets the last date of the represented CalendarComponent
objects without changing start hour, minute. |
void |
setFirstDate(java.util.Date firstdate)
Sets the first date of the represented CalendarComponent
objects. |
void |
setLastDate(java.util.Date lastdate)
Sets the last date of the represented CalendarComponent
objects. |
void |
setView(int view)
Sets the view to be taken for the current container. |
| Methods inherited from class de.cebis.moccabox.domain.AbstractConceptualObject |
|---|
getCreationDate, getId, getLastEditDate, getVersion, initialize, setCreationDate, setId, setLastEditDate, setVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PRIVATE
public static final int PUBLIC
public static final int VIEW_MONTH
public static final int VIEW_WEEK
public static final int VIEW_DAY
public static final int VIEW_LIST
public static final int VIEW_GROUP
public static final int VIEW_YEAR
public static final java.lang.String PROP_VIEW
public static final java.lang.String PROP_FIRSTDAY
public static final java.lang.String PROP_LASTDAY
public static final int GROUPBY_NOTHING
public static final int GROUPBY_LOCATION
public static final int GROUPBY_CATEGORY
public static final int GROUPBY_CALENDARID
public static final int GROUPBY_ORGANISERID
public static final int NAME
public static final int OWNER
| Constructor Detail |
|---|
public CalendarComponentContainer()
| Method Detail |
|---|
public void init()
public CalendarComponentContainer getCalendarComponentContainer()
public void setCalendar(de.cebis.moccapart.calendar.domain.Calendar calendar)
Calendar if container only contains
component from this one object.
calendar - Unique identifier.public de.cebis.moccapart.calendar.domain.Calendar getCalendar()
Calendar if container only contains
component from this one object.
public void removeCalendarEvent(int position)
CalendarEvent from the
CalendarComponentContainer.
position - Specifies the event to be removed.public int getCalendarEventCount()
CalendarEvent objects in the
CalendarComponentContainer.
public int getCalendarTaskCount()
CalendarTask objects in the
CalendarComponentContainer.
public boolean containsNoCalendarEvents()
CalendarEvent objects in the
CalendarComponentContainer.
public boolean containsNoCalendarTasks()
CalendarEvent objects in the
CalendarComponentContainer.
public void setExactFirstDate(java.util.Date firstdate)
CalendarComponent
objects without changing start hour, minute, second.
firstdate - The starting date.public void setFirstDate(java.util.Date firstdate)
CalendarComponent
objects.
firstdate - The starting date.public void instantiateFirstDate()
CalendarComponent
objects.
public java.util.Date getFirstDate()
CalendarComponent
objects.
public java.util.Date getPreviousFirstDate()
public java.util.Date getCurrentDate()
public java.util.Date getNextFirstDate()
public void setLastDate(java.util.Date lastdate)
CalendarComponent
objects.
lastdate - The end date.public void setExactLastDate(java.util.Date lastdate)
CalendarComponent
objects without changing start hour, minute.
lastdate - The starting date.public java.util.Date getLastDate()
CalendarComponent
objects.
public void setView(int view)
view - VIEW_DAY, for a daily view.
VIEW_WEEK, for a weekly view.
VIEW_MONTH, for a monthly view.public int getView()
public void addCalendarEvent(de.cebis.moccapart.calendar.domain.CalendarEvent event)
CalendarEvent object to the
CalendarComponentContainer.
event - CalendarEvent to be added.public void addCalendarEvents(de.cebis.moccapart.calendar.domain.CalendarEvent[] events)
CalendarEvent object array to the
CalendarComponentContainer.
events - CalendarEvent to be added.public CalendarTimeUnit[] getDays()
public java.util.Vector<CalendarTimeUnit> calculateDays()
CalendarComponentContainer represents.
public CalendarTimeUnit[] getCalendarTimeUnits()
CalendarComponentContainer represents.
public java.util.Vector<CalendarTimeUnit> getHours()
CalendarComponentContainer
represents.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||